package com.itheima.demo01.OutputStream;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;

public class Demo02OutputStream {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream(new File("day09_IOAndProperties\\b.txt"));
        fos.write(49);
        fos.write(48);
        fos.write(48);
        byte[] btes = {65, 66, 67, 68, 69};
        fos.write(btes);
        fos.write(btes, 1, 2);
        byte[] bytes2 = "你好".getBytes();
        System.out.println(Arrays.toString(bytes2));
        fos.write(bytes2);
        fos.close();
    }
}
